using Dapper.Contrib.Extensions;

namespace Read.Models
{
    /// <summary>
    /// 文章类
    /// </summary>
    [Table(Tables.Archives)]
    public class ArchivesModel
    {
        /// <summary>
        /// 文章Id
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 文章标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 栏目Id
        /// </summary>
        public int CategoryId { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public int CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public int UpdateTime { get; set; }

        /// <summary>
        /// 阅读数量
        /// </summary>
        public int ReadNumber { get; set; }
    }
}